package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.ContractInvoice;

/**
 * 发票管理Mapper接口
 *
 * @author ruoyi
 * @date 2024-03-14
 */
public interface ContractInvoiceMapper
{
    /**
     * 查询发票管理
     *
     * @param id 发票管理主键
     * @return 发票管理
     */
    public ContractInvoice selectContractInvoiceById(Long id);
    public List<ContractInvoice> selectContractInvoiceByContractId(Long contractId);

    /**
     * 查询发票管理列表
     *
     * @param contractInvoice 发票管理
     * @return 发票管理集合
     */
    public List<ContractInvoice> selectContractInvoiceList(ContractInvoice contractInvoice);
    public List<ContractInvoice> selectContractInvoiceByProjectId(ContractInvoice contractInvoice);

    /**
     * 新增发票管理
     *
     * @param contractInvoice 发票管理
     * @return 结果
     */
    public int insertContractInvoice(ContractInvoice contractInvoice);

    /**
     * 修改发票管理
     *
     * @param contractInvoice 发票管理
     * @return 结果
     */
    public int updateContractInvoice(ContractInvoice contractInvoice);

    /**
     * 删除发票管理
     *
     * @param id 发票管理主键
     * @return 结果
     */
    public int deleteContractInvoiceById(Long id);

    /**
     * 批量删除发票管理
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteContractInvoiceByIds(Long[] ids);
}
